package com.community.dao;

import com.community.pojo.Attachment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttachmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Attachment record);

    int insertSelective(Attachment record);

    Attachment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Attachment record);

    int updateByPrimaryKey(Attachment record);

    List<Attachment> selectByParam(@Param(value = "entityName") String entityName,
                                   @Param(value = "entityType") String entityType,
                                   @Param(value = "entityId") Integer entityId);
}